package com.hm.cms.domain;

import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.cms.auto.su.BaseDomain;
import com.hm.cms.auto.su.R;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 下午1:27:47 2017年10月13日
 * @version 1.0
 * @describe 标签
 */
@Setter
@Getter
@Document(collection = R.Database.prefix + "TERM_TAXONOMY")
@CompoundIndexes({ @CompoundIndex(name = "status", def = "{'status':1}"),
		@CompoundIndex(name = "term_tay_name", def = "{'term_tay_name':1}"),
		@CompoundIndex(name = "status,page_nav", def = "{'status':1,'page_nav':1}"),
		@CompoundIndex(name = "status,show_home", def = "{'status':1,'show_home':1}") })
public class TermTaxonomyDomain extends BaseDomain {

	private static final long serialVersionUID = 1L;

	// /**
	// * 分类id
	// */
	// @Field(value = "term_ids")
	// private List<String> termIds;

	/**
	 * 标签CODE
	 */
	@Indexed(unique = true)
	@Field(value = "term_tay_code")
	private String termTayCode;

	/**
	 * 标签名称
	 */
	@Field(value = "term_tay_name")
	private String termTayName;

	/**
	 * 标签描述
	 */
	@Field(value = "term_tay_note")
	private String termTayNote;

	/**
	 * 展示顺序
	 */
	@Field(value = "term_tay_order")
	private Integer termTayOrder;

	/**
	 * 父亲标签
	 */
	@Field(value = "parent_term_tay")
	private String parentTermTay;

	/**
	 * 页面导航
	 */
	@Field(value = "page_nav")
	private Boolean pageNav;

	/**
	 * 展示在首页
	 */
	@Field(value = "show_home")
	private Boolean showHome;
	
	/**
	 * 导航请求链接
	 */
	@Field(value = "nav_uri")
	private String navUri;
}
